{% extends 'base.html' %}

{% block head_title %}Create Competition{% endblock head_title %}
{% block page_title %}Create Competition{% endblock page_title %}

{% block content %}
<div id="create_competition" class="panel panel-default">
    <div class="panel-body">
        <p>
            To create a competition, upload a bundle with the definition of the new competition.
            <a href="https://github.com/codalab/codalab/wiki/User_Competition-Roadmap"
               title="Get help with creating a competition" target="_blank">
               <span class="glyphicon glyphicon-question-sign"></span>
            </a>
        </p>
        <button id="uploadButton" class="button btn btn-primary">Upload definition...</button>
        {% csrf_token %}
        <div id="details"></div>
    </div>
</div>
{% endblock %}

{% block js %}
$(document).ready(function () {
    CodaLab.Competitions.CreateReady();
});
{% endblock js %}
